#!/bin/usr/env ruby
require 'backup_base.rb'

require 'pp'

#using relative path

backup_targets = []
backup_password=nil
prefix = 'neocoin'
num_daily,num_wekly, num_monthly = 2,1,1

require 'fileutils.rb'

message "setup" do
  FileUtils.rm_rf receive_dir if File.exist? receive_dir
  FileUtils.mkdir_p receive_dir
end

zip_filenames =['daily','weekly','monthly'].map{|i|
  "#{prefix}_#{i}_#{Time.now.strftime "%Y-%m-%d_%H%M"}.tar.gz"
}


unless backup_password
  message "encrypt" do
    results.each{|fn|
      system "gpg  --passphrase #{backup_password} --no-use-agent -c #{fn}"
    }
  end
end

